home *** CD-ROM | disk | FTP | other *** search
- FILE CUNIX.SCR
-
-
- AUTOMATIC LOGIN TO ACADEMIC UNIX SYSTEMS FROM MS-DOS KERMIT
-
- Christine M. Gianone
- Manager, Kermit Developement and Distribution
- CUCCA/AcIS
- October 1991
-
-
- CUNIX.SCR is a script program for logging in to an instructional SUN computer,
- such as CUNIXA or CUNIXB, using MS-DOS Kermit from a campus Rolmphone, either
- a D-type data phone or a 244PC.
-
- Although you can run this script program from within Kermit by typing the
- command "TAKE CUNIX.SCR", it is intended to be run from DOS command level
- via DOS Batch programs that can feed it certain information to customize its
- actions. Several of these Batch programs are provided:
-
- CUNIXA.BAT - Connects you to CUNIXA, gets you to the prompt.
- CUNIXB.BAT - Connects you to CUNIXB, gets you to the prompt.
- CUNIXD.BAT - Connects you to CUNIXD, gets you to the prompt.
-
- To use these batch files, and CUNIX.SCR itself, you must be running MS-DOS
- Kermit 3.11 or later, and it must be installed as KERMIT.EXE in a directory
- that is part of your DOS PATH definition. CUNIX.SCR and the related Batch
- files should be in the same directory. For hard disk systems, this would
- normally be the directory C:\KERMIT\.
-
- For detailed instructions on installation and use of MS-DOS Kermit, see the
- Second Edition of "Using MS-DOS Kermit", available in the CUCCA/AcIS Business
- Office in 102 Philosophy and at local bookstores.
-
- Run any of these Batch programs just by typing its name (the part before
- ".BAT"), for example:
-
- C:\>cunixa
-
- (in this example, "C:\>" is the DOS prompt, and you type "cunixa" and then
- press the Enter key).
-
- The Batch programs accept two optional words on the DOS command line, after
- their names. The first is your UNIX user ID, for example abc123, and the
- second is your password:
-
- C:\>cunixa abc123 secret
-
- If you leave out your password, CUNIX.SCR will prompt you for it. If you
- leave out the user ID and password, CUNIX.SCR will prompt you for both of
- them. If you run CUNIX.SCR from inside Kermit, it will prompt you for both
- of these, as well as which host to connect to.
-
- Once CUNIX.SCR knows your user ID and password, it tries to connect you to
- the desired UNIX system through your ROLMphone, using the default
- communication port and speed. Normally this is COM1 and 9600 bps, but you
- can change them by putting SET commands in your MSKERMIT.INI file, for
- example:
-
- SET PORT 2
- SET SPEED 19200
-
- If CUNIX.SCR fails to communicate with your ROLMphone, it will give you an
- informative message. Check your port and speed setting, make sure you
- have a data cable connecting your PCs serial port and the ROLMphone, make
- sure Kermit is using the same port the cable is connected to, make sure your
- ROLMphone actually does have a working data option, etc. For detailed
- troubleshooting instructions, see "Preparing for Data Communication with
- the CBX".
-
- Once CUNIX.SCR is talking to your ROLMphone, it attempts to connect to one of
- the CUTS terminal servers (CUTSA, CUTSB, ...), then it tries to connect to
- the desired CUNIX system, then it tries to log you in automatically, then it
- sets your UNIX terminal type to be the same as Kermit's (VT320), and finally
- it it gives you a terminal screen to the UNIX host. Any of these steps can
- fail. If they do, you'll get an informative error message.
-
- Once you are successfully connected to the Info system (CUNIXF), you will
- have a terminal screen. The characters you type on the keyboard are sent
- to CUNIXF, and the characters sent by CUNIXF appear on your screen.
-
- Two special Alt-key combinations are available for your use while the terminal
- screen is active. An Alt-key combination is entered by holding down the Alt
- key and pressing the indicated letter while Alt is held down.
-
- Alt-q (hold down Alt, press q):
- Log out from CUNIXF, hang up the data connection, exit Kermit,
- return to DOS.
-
- Alt-x (hold down Alt, press x):
- Return to Kermit's "MS-Kermit>" prompt without logging out from
- CUNIXF. To get back to CUNIXF, type CONNECT and then press the
- Enter key.
-
- CUSTOMIZATIONS
-
- Once you have the CUNIX.SCR, CUNIXA.BAT, CUNIXB.BAT, and CUNIXD.BAT files on
- your PC, you can edit them for convenience. In most cases this won't be
- necessary.
-
- However, the correct operation of CUNIX.SCR depends upon your UNIX system
- prompt being either "$ " (dollar sign followed by space, the standard Shell
- and K-Shell prompt) or "% " (percent followed by space, the standard C-Shell
- prompt). If your prompt is different, you MUST edit CUNIX.SCR to tell it what
- your prompt is. Find the line that looks like this:
-
- ; define myprompt {cunixa: }
-
- Remove the ";" (semicolon) comment indicator, and change "cunixa: " to
- whatever your prompt is (leave the curly brackets), for example:
-
- define myprompt {unix> }
-
- If you don't want to type your user ID each time, add a line immediately
- below "define myprompt" like this:
-
- define userid abc123
-
- where "abc123" is your user ID.
-
- But please, DO NOT put your password in this or any file. You should always
- enter it every time you log in. If you password is in the CUNIX.SCR file,
- anybody can walk up to your PC and access your private data -- they can read
- it, change it, or delete it.
-
- [End of CUNIX.DOC]
-